<?php
namespace Admin\Controller;
use Admin\Controller\CommonController;
use Common\Model\AdModel;
use Think\Controller;

class CacheController extends  CommonController{


	public function index(){
		$this->display();
	}

	public function del(){
		$cacheDir = Glob(RUNTIME_PATH.'*');

		foreach($cacheDir as $k => $v){
			if($v == './Application/Runtime/Logs') continue;
			delDir($v.'/');
		}
		$this->success('清理完成');
	}
}
